<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>编辑商家</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/skin/admin/css/base.css">
<script language="javascript">

function callSubMethod(){
  var str=window.showModalDialog("{:U('Upload/index')}","","dialogWidth=400px;dialogHeight=200px;toolbar=no;scroll=yes;");
  document.getElementById('cover').value=str;

}



</script>
	<link rel="stylesheet" href="__ROOT__/kindeditor/themes/default/default.css" />
	<link rel="stylesheet" href="__ROOT__/kindeditor/plugins/code/prettify.css" />
	<script charset="utf-8" src="__ROOT__/kindeditor/kindeditor.js"></script>
	<script charset="utf-8" src="__ROOT__/kindeditor/lang/zh_CN.js"></script>
	<script charset="utf-8" src="__ROOT__/kindeditor/plugins/code/prettify.js"></script>
	<script>
		KindEditor.ready(function(K) {
               K.create('textarea[name="content"]', {
					allowFileManager : true

				});
	
	
		});
	</script>
</head>
<body leftmargin="8" topmargin="8" background='__PUBLIC__/skin/images/allbg.gif'>

<!--  快速转换位置按钮  -->
<table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA" align="center">
<tr>
 <td height="26" background="__PUBLIC__/skin/images/newlinebg3.gif">
  <table width="98%" border="0" cellspacing="0" cellpadding="0">
  <tr>
  <td align="center">编辑商家信息</td>
 </tr>
</table>
</td>
</tr>
</table>
  
<!--  内容列表   -->
<form name="form2" action="{:U('edit',array('id'=>$li['id']))}" method="post" >
  <table width="98%" border="0" align="center" cellspacing="1" bgcolor="#D1DDAA">
  <tr>
    <td width="100" height="28" bgcolor="#FFFFFF">商家标题：</td>
    <td bgcolor="#FFFFFF"><input name="title" type="text" id="title" style="height:22px; width:400px;" value="{$li['title']}"> </td>
    </tr>
	  <tr>
    <td width="100" height="28" bgcolor="#FFFFFF">商家封面：</td>
    <td bgcolor="#FFFFFF"><input name="cover" type="text" id="cover" style="height:22px; width:200px;" value="{$li['cover']}"> 
      <input  type="button"  value="上传封面" onClick="callSubMethod();" /> </td>
    </tr>
      <tr>
    <td width="100" height="28" bgcolor="#FFFFFF">商家电话：</td>
    <td bgcolor="#FFFFFF"><input name="phone" type="text" id="phone" style="height:22px; width:200px;" value="{$li['phone']}"> </td>
    </tr>
	  <tr>
    <td width="100" height="28" bgcolor="#FFFFFF">商家地址：</td>
    <td bgcolor="#FFFFFF"><input name="address" type="text" id="address" style="height:22px; width:400px;" value="{$li['address']}"></td>
    </tr>
  <tr>
  	  <tr>
    <td width="100" height="28" bgcolor="#FFFFFF">工作时间：</td>
    <td bgcolor="#FFFFFF"><input name="worktime" type="text" id="worktime" style="height:22px; width:200px;" value="{$li['worktime']}"></td>
    </tr>
          	  <tr>
    <td width="100" height="28" bgcolor="#FFFFFF">地图坐标：</td>
    <td bgcolor="#FFFFFF">经度：<input name="log" type="text" id="log" style="height:22px; width:100px;" value="{$li['log']}"> 
      (120.0000) 维度：
        <input name="lat" type="text" id="lat" style="height:22px; width:100px;" value="{$li['lat']}">
        (30.00000)<a href="http://api.map.baidu.com/lbsapi/getpoint/index.html" target="_blank">坐标查询请点击</a></td>
    </tr>
    <tr>
    <td width="100" height="28" bgcolor="#FFFFFF">&nbsp;产品分类：</td>
    <td bgcolor="#FFFFFF"><select name="cid" id="cid">
	<volist  name="list" id="vo" >
	     <option value="{$vo['id']}">{$vo['name']}</option>
	 	  </volist>
    </select></td>
    </tr>
  <tr>
    <td height="28" bgcolor="#FFFFFF">&nbsp;内容：</td>
    <td bgcolor="#FFFFFF"><textarea name="content" id="content" style="width:100%;height:400px;visibility:hidden;">{$li['content']}</textarea></td>
    </tr>
    	  <tr>
    <td height="28" bgcolor="#FFFFFF">推荐</td>
    <td bgcolor="#FFFFFF">
    
          <input name="good" type="radio" value="1" <if condition="$li['good'] eq  1 ">checked</if> >
           推荐
          <input type="radio" name="good" value="0"  <if condition="$li['good'] eq  0 ">checked</if> >
          不推荐</td>
  </tr>
	  <tr>
    <td height="28" bgcolor="#FFFFFF">&nbsp;</td>
    <td bgcolor="#FFFFFF"><input name="submit" type="submit" id="submit" value="发布"></td>
  </tr>
</table>
</form>
</body>
</html>